<template>
  <div>
    <button v-for="(item, index) in title" :key="index" @click="to(index)">
      {{ item }}
    </button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: ["企业数据", "服务器数据", "省份数据"],
    };
  },
  mounted() {},
  methods: {
    to(i) {
      if (i == 0) {
        this.$router.push("/home/first/state");
      } else if (i == 1) {
        this.$router.push("/home/first/web");
      }
    },
  },
};
</script>
<style lang='less' scoped>
</style>